using System;
using System.Collections.Generic;
using System.Text;

namespace needle.Appointments {

    public class Article
    {
        private string _name;
        private float _price;
        private string _id;

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public float Price
        {
            get { return _price; }
            set { _price = value; }
        }

        public string ID
        {
            get { return _id; }
            set { _id = value; }
        }

        public Article(string name, float price, string id)
        {
            _name = name;
            _price = price;
            _id = id;
        }

        public override string ToString()
        {
            return _id + ":" + _name + " " + _price;
        }
    }
}
